package frsf.cidisi.exercise.tp2.interfaz;

import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Image;

import javax.swing.ImageIcon;
import javax.swing.JPanel;

public class IPanel extends JPanel {
	
	Image image = new ImageIcon(getClass().getResource("Isla.jpg")).getImage();
	
	public IPanel() {	
		
	}
	
	public void paint(Graphics g){
		super.paint(g);
		Graphics2D g2d = (Graphics2D) g;
		//g2d.drawImage(image,(int) (this.getWidth()-(this.getWidth()/(2.5)))/2,0, (int) (this.getWidth()/(2.5)),this.getHeight(),this);
		g2d.drawImage(image,0,0,500,500,this);
	}	
	
}
